package com.clinic.action.user;

import org.springframework.beans.factory.annotation.Autowired;

import com.clinic.action.common.AuthenticationAction;
import com.clinic.entity.gui.GuiUser;
import com.clinic.logic.appointment.AppointmentLogic;
import com.clinic.logic.user.UserLogic;

public class UserAction extends AuthenticationAction {
	
	@Autowired
	private UserLogic userLogic;
	
	@Autowired
	private AppointmentLogic appointmentLogic;
	
	private static final long serialVersionUID = -7187789371159130914L;
	private long userId;
	protected long id;
	private GuiUser guiUser;

	public String execute() {
        return ActionResult.SUCCESS;
    }
	
	public String show(){
		guiUser = userLogic.getUserById(id);
		return ActionResult.SUCCESS;
	}
	
	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public GuiUser getGuiUser() {
		return guiUser;
	}

	public void setGuiUser(GuiUser guiUser) {
		this.guiUser = guiUser;
	}	
	
	
}
